<template>
  <div>
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon=" icon iconfont icon--xiaolu" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="icon iconfont icon-shuben_2" to="/bannerdetail">课程</van-tabbar-item>
      <van-tabbar-item icon="icon iconfont icon-dianji" to="/record">约课记录</van-tabbar-item>
      <van-tabbar-item icon="icon iconfont icon-jishiben" to="/practice">练习</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from "vant";
// 按需引入“vant”
export default {
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
  },
  data () {
    return {
      active: 0,
    }
  },
}
</script>

<style>
</style>